import javax.swing.JOptionPane;
import java.util.Scanner;
public class Welcome 
{
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
       // System.out.println("Enter a number for radius:!");
        String radiusStr = JOptionPane.showInputDialog("Enter a number for radius:");
        //double radius =  input.nextDouble();
        double radius = Double.parseDouble(radiusStr);
        double area = radius*radius*3.141592653;
        System.out.println("The area for radius " + radius + " is "+ area);
        int option = JOptionPane.showConfirmDialog(null, "is the result right?");
        System.out.println("result:"+option);
        add(1,2);
    }
    public static void add(double x,double y)
    {
        
        System.out.println("x+y="+x+y);  
    }
           public static void add(int x,int y)
    {
        
      System.out.println("x+y="+(x+y));  
    }

}
